<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<div style="margin:0px 0px 16px 0px">
				<div style="margin:0px 0px 0px 0px">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
			  			<tr>
						    <td width="9" class="grey-header-bg-left">&nbsp;</td>
						    <td align="left" class="grey-header-bg"><div class="white-header-text">Buyer's resources</div></td>
						     <td width="9" class="grey-header-bg-right"></td>
			  			</tr>
					</table>
				</div>
				<div style="margin:0px 5px 0px 5px">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td rowspan="2" valign="top"><div style="margin:10px 0px 0px 0px">
                    <s:if test="item.userId.id == #session.user.id && item.itemtype.id == 1">
                      <div><a href="showOfferDetails.htm?cid=<s:property value="item.itemId" />" class="categories-arrow-text" >Check offer history</a></div>
                      <div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
                    </s:if>
                    <s:if test="item.userId.id != #session.user.id && favorite == false">
                      <div><a href="addToFavoriteUser.htm?userId=<s:property value="item.userId.id" />" class="categories-arrow-text" >	Add to favorite sellers</a></div>
                      <div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
                    </s:if>
                    <s:if test="item.userId.id != #session.user.id && inWatchList == false">
                      <div><a href="#" class="categories-arrow-text" >Watch this item</a></div>
                      <div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
                    </s:if>
                      <div><a href="askSeller.htm?cid=<s:property value="item.itemId" />" class="categories-arrow-text" >Ask seller a question</a></div>
                      <div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
                      <div><a href="browseItems.htm?uid=<s:property value="item.userId.id" />&type=5" class="categories-arrow-text" ><s:property value="item.userId.userId" /> - Advertisements</a></div>
                      <div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
                      <div><a href="browseItems.htm?uid=<s:property value="item.userId.id" />&type=4" class="categories-arrow-text" ><s:property value="item.userId.userId" /> - Wanted Items</a></div>
                      <div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
                      <div><a href="browseItems.htm?uid=<s:property value="item.userId.id" />&type=0" class="categories-arrow-text" ><s:property value="item.userId.userId" /> - All items for sale</a></div>
                      <div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
                      <div><a href="feedbackForSeller.htm" class="categories-arrow-text" >Comments about seller</a></div>
                      <div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
                      <div><a href="printItem.htm?cid=<s:property value="item.itemId" />" class="categories-arrow-text" >Print this item</a></div>
                      <div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
                      <div><a href="mailItemToFriend.htm?cid=<s:property value="item.itemId" />" class="categories-arrow-text" >Mail this item to a friend</a></div>
                      <div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
                      <div><a href="javascript:PPPCC=window.open('<%= basePath + "currencyConverter.htm" %>','CurrencyConverter','width=600,height=325,scrollbars=yes,resizable=false');PPPCC.focus()" class="categories-arrow-text" >Currency converter</a></div>
                    </div></td>
                    <td width="11" valign="top" class="left-bg"><div style="margin:0px 0px 0px 0px"><img src="images/left/left-grey-top-bg.jpg" alt=" " width="11" height="170" /></div></td>
                  </tr>
                  <tr>
                    <td valign="bottom" class="left-bg"><div style="margin:0px 0px 0px 0px"><img src="images/left/left-grey-bottom-bg.jpg" alt=" " width="11" height="121" /></div></td>
                  </tr>
                </table>
              	</div>
              </div>

<div style="margin:0px 0px 16px 0px">
				<div style="margin:0px 0px 0px 0px">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
			  			<tr>
						    <td width="9" class="grey-header-bg-left">&nbsp;</td>
						    <td align="left" class="grey-header-bg"><div class="white-header-text">Seller: <s:property value="item.userId.userId" /></div></td>
						     <td width="9" class="grey-header-bg-right"></td>
			  			</tr>
					</table>
				</div>
				<div style="margin:0px 5px 0px 5px">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td rowspan="2" valign="top"><div style="margin:10px 0px 0px 0px">
                    	<table width="100%">
                    		<tr>
                    		  <td width="55%" align="right" valign="top" class="search-text">Member since :</td>
                    		  <td class="common-text"><s:date name="item.userId.createdDate" format="dd/MM/yyyy" /></td>
                    		</tr>
              				<tr>
              				  <td align="right" valign="top" class="search-text">Location :</td>
              				  <td class="common-text"><s:property value="item.userId.state.categoryName" />, <s:property value="item.userId.city" /></td>
              				</tr>
              				<tr>
              				  <td align="right" valign="top" class="search-text">Country :</td>
              				  <td class="common-text"><s:property value="item.userId.country.categoryName" /></td>
              				</tr>
           			  </table>
                    </div></td>
                    <td width="11" valign="top" class="left-bg"><div style="margin:0px 0px 0px 0px"><img src="images/left/left-grey-top-bg.jpg" alt=" " width="11" height="170" /></div></td>
                  </tr>
                  <tr>
                    <td valign="bottom" class="left-bg"><div style="margin:0px 0px 0px 0px"><img src="images/left/left-grey-bottom-bg.jpg" alt=" " width="11" height="121" /></div></td>
                  </tr>
                </table>
              	</div>
              </div>